package movee.spring.app.template.domain.query;

import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import java.util.LinkedList;
import java.util.List;

/**
 *
 *
 * @author movee
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id",
        scope = JoinedOrderQuery.class)
@ApiModel(description = "order详细信息")
public class JoinedOrderQuery extends BaseOrderQuery {

    /**
     * 关联的item列表（一对多）
     */
    @ApiModelProperty(value = "关联的item")
    private List<JoinedItemQuery> items = new LinkedList<>();

}

